<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta http-equiv="x-ua-compatible" content="ie=edge">
    <!-- 图标库 -->
    <link rel="stylesheet" href="/static/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="/static/fontawesome-free/css/all.min.css">
    {% block StyleSheet %}
    {% endblock %}
{#    <!-- Ionicons -->#}
{#   <link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">#}
{#  <!-- daterange picker -->#}
  <link rel="stylesheet" href="/static/plugins/daterangepicker/daterangepicker.css">
  <!-- iCheck for checkboxes and radio inputs -->
  <link rel="stylesheet" href="/static/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- Bootstrap Color Picker -->
  <link rel="stylesheet" href="/static/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">
  <!-- Tempusdominus Bbootstrap 4 -->
  <link rel="stylesheet" href="/static/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- Select2 -->
  <link rel="stylesheet" href="/static/plugins/select2/css/select2.min.css">
  <link rel="stylesheet" href="/static/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
  <!-- Bootstrap4 Duallistbox -->
  <link rel="stylesheet" href="/static/plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css">
  <!-- 主题样式 -->
  <link rel="stylesheet" href="/static/dist/css/adminlte.min.css">
    <link rel="stylesheet" href="/static/css/main.css">
  <!-- 谷歌字体: Source Sans Pro -->
  <link href="/static/dist/css/google.css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
    <title>{% block title %}My amazing site{% endblock %}</title>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<!-- 头部导航 -->
  <nav class="main-header navbar navbar-expand gradient-color-her navbar-light">
    <!-- 头部左侧导航-->
    <ul class="navbar-nav">
      <li class="nav-item hoverColor">
        <a class="nav-link" data-widget="pushmenu" id="Menu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block hoverColor">
        <a href="/adminindex/" class="nav-link">主页</a>
      </li>
        <li class="nav-item d-none d-sm-inline-block">
            <img src="/static/img/校徽组合（退底）.png" class="logo-top " alt="校徽" >

        </li>
    </ul>



    <!-- 头部右侧导航 -->
    <ul class="navbar-nav ml-auto">

      <!-- 登出按钮 -->
      <li class="nav-item dropdown hoverColor">
            <a class="nav-link" href="/loginout/" id="login-out" role="button"><i
            class="fa fa-sign-out-alt" style="color: #b92c28"></i></a>
      </li>

    </ul>
  </nav>
  <!-- /.顶部导航结束 -->
<!-- 左侧导航容器 -->
  <aside class="main-sidebar sidebar-light-primary gradient-color-ver elevation-4 radius">
    <!-- 图标logo -->
    <a href="#" class="brand-link">
      <img src="/static/img/北化蓝.png" alt="Logo" class="logo-buct elevation-1">
      <span class="brand-text  font-weight-light logo-text">图书馆管理系统</span>
    </a>

    <!-- 按钮列表 -->
    <div class="sidebar">
      <!-- 用户头像 -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="/static/img/icons/avatar_admin.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block margin-left-name font-weight-light user-name-font">{{ LoginUser.Name }}</a>
        </div>
      </div>

      <!-- 按钮菜单 -->
      <nav class="mt-2">
          <!--父列表 -->
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->

          <li class="nav-item has-treeview  {{ OpenLib }}  {{ LibState }}"> <!--menu-open表示列表打开-->
            <a href="#" class="nav-link"><!--active表示被选中的网页-->
              <i class="nav-icon fas fa-bank" style="color: #509517;"></i>
              <p>
                图书管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview ">
              <li class="nav-item">
                <a href="/admin_searchresult/" class="nav-link {{ SearchState }}"> <!--active表示被选中的网页-->
                  <i class="far fa-circle  nav-icon"></i>
                  <p>书籍查询</p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="/add_book/" class="nav-link {{ AddState }}">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加图书</p>
                </a>
              </li>
                <li class="nav-item ">
                <a href="/admin_todaylib/" class="nav-link {{ dataState }}">
                  <i class="far fa-circle nav-icon"></i>
                  <p>图书馆借阅统计</p>
                </a>
              </li>
            </ul>
          </li>
          <li class="nav-item has-treeview {{ OpenBr }} {{ BrState }}">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-book-reader " style="color: #ba5ffc"></i>
              <p>
                借阅审核
           <!--     <span class="right badge badge-danger">New</span> -->
                   <i class="right fas fa-angle-left"></i>
              </p>
            </a>
              <ul class="nav nav-treeview">
                  <li class="nav-item">
                        <a class="nav-link {{ CheckState }}" href="/check_borrow/">
                            <i class="far fa-circle nav-icon"></i>
                            <p>借阅申请审核</p>
                        </a>
                  </li>
                   <li class="nav-item">
                        <a class="nav-link {{ IllegalState }}" href="/admin_showillegal/">
                            <i class="far fa-circle nav-icon"></i>
                            <p>违规借阅记录</p>
                        </a>
                  </li>
              </ul>
          </li>
          <li class="nav-item has-treeview {{ OpenInf }} {{ InfState}}">
        <a href="#" class="nav-link">
          <i class="nav-icon fa fa-address-card" style="color: #6bbbdc"></i>
          <p>
            信息维护
               <i class="right fas fa-angle-left"></i>
          </p>
        </a>
          <ul class="nav nav-treeview">
              <li class="nav-item">
                    <a class="nav-link {{ mdfInfState }}" href="/admin_infmdf/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>修改个人信息</p>
                    </a>
              </li>
               <li class="nav-item">
                    <a class="nav-link {{ mdfpwdState }}" href="/admin_pwdmdf/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>修改密码</p>
                    </a>
              </li>
                <li class="nav-item">
                    <a class="nav-link {{ applyState }}" href="/admin_apply_check/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>读者等级变更审核</p>
                    </a>
              </li>
               <li class="nav-item">
                    <a class="nav-link {{ addReaderState }}" href="/add_user/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>添加读者账号</p>
                    </a>
              </li>
              <li class="nav-item">
                    <a class="nav-link {{ deleteReader }}" href="/delete_reader/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>撤销读者账号</p>
                    </a>
              </li>
               <li class="nav-item">
                    <a class="nav-link {{ mdfClassState }}" href="/class_mdf_list/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>修改读者级别权限</p>
                    </a>
              </li>
               <li class="nav-item">
                    <a class="nav-link {{ addClassState }}" href="/add_class/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>增加读者级别</p>
                    </a>
              </li>
               <li class="nav-item">
                    <a class="nav-link {{ mdfFineState }}" href="/fine_mdf_list/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>修改处罚机制</p>
                    </a>
              </li>
              <li class="nav-item">
                    <a class="nav-link {{ addFineState }}" href="/add_fine/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>增加处罚机制</p>
                    </a>
              </li>
          </ul>
      </li>

              <li class="nav-item has-treeview {{ OpenMes }} {{ MesState}}">
        <a href="#" class="nav-link">
          <i class="nav-icon fa fa-commenting" style="color: #73b9a2"></i>
          <p>
            公告和消息
               <i class="right fas fa-angle-left"></i>
          </p>
        </a>
          <ul class="nav nav-treeview">
              <li class="nav-item">
                    <a class="nav-link {{ MesSendState }}" href="/sendMessage/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>发送消息</p>
                    </a>
              </li>
               <li class="nav-item">
                    <a class="nav-link {{ noticeState }}" href="/sendNotice/">
                        <i class="far fa-circle nav-icon"></i>
                        <p>发布公告</p>
                    </a>
              </li>


          </ul>
      </li>

        </ul>
      </nav>
      <!-- /.菜单栏结束-->
    </div>

    <!-- /.左侧菜单栏结束 -->
  </aside>

  <!-- 内容容器. 包含界面内容 -->
  <div class="content-wrapper backgroundImage">
    <!-- 标题 -->
    <section class="content-header">
      <div class="container-fluid">

        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark font-weight-light">
                {% block contentHeader %}
                {% endblock %}</h1>
          </div><!-- /.col -->
        </div><!-- /.row -->


      </div>
    </section>

       <section class="content">
          <div class="container-fluid">
                 {% block content %}
                 {% endblock %}
          </div>
       </section>

    </div>
    <!-- /.标题-->


    <!-- /.content -->

  <!-- /.内容容器 -->



  <!-- 底部内容 -->
  <footer class="main-footer" >
    <!-- 左侧 -->
    <div class="float-right d-none d-sm-inline" >
      @buct
    </div>
    <!-- Default to the left -->
    <strong class="font-weight-light">Copyright &copy; 1999-2020 yzzer工作室 powered by <a href="http://adminlte.io">AdminLTE.io</a>.</strong>
  </footer>

<!-- ./wrapper -->
<!--JS导入-->
<!-- jQuery -->
<script src="/static/jquery/jquery.min.js"></script>
<script>
    window.onload = function () {
        document.getElementById("login-out").onclick = function () {
            window.location.href = "/loginout/";
        }

    }
</script>
{% block script %}
{% endblock %}
{% block moreJSLib %}
{% endblock %}
<!-- Bootstrap 4 -->
<script src="/static/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- 主题样式 -->
<script src="/static/dist/js/adminlte.min.js"></script>

<!-- Select2 -->
<script src="/static/plugins/select2/js/select2.full.min.js"></script>
<!-- Bootstrap4 Duallistbox -->
<script src="/static/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
<!-- InputMask -->
<script src="/static/plugins/moment/moment.min.js"></script>
<script src="/static/plugins/inputmask/min/jquery.inputmask.bundle.min.js"></script>
<!-- date-range-picker -->
<script src="/static/plugins/daterangepicker/daterangepicker.js"></script>
<!-- bootstrap color picker -->
<script src="/static/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="/static/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Bootstrap Switch -->
<script src="/static/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>

<!-- AdminLTE for demo purposes -->

</body>
</html>
